// Copyright 2010 Alexandre Tristan St-Cyr <tristan.stcyr@gmail.com>

package com.codeplex.loadjava.model;

public class JavaClass {

	private String internalName;
	
	public JavaClass(String internalName) {
		assert(internalName != null);
		this.internalName = internalName;
	}
	
	public String getInternalName()
	{
		return this.internalName;
	}
	
	@Override
	public int hashCode()
	{
		return this.internalName.hashCode();
	}
		
	@Override
	public boolean equals(Object o)
	{
		if (!JavaClass.class.isInstance(o))
			return false;
		JavaClass other = (JavaClass)o;
		return this.internalName.equals(other.internalName);
	}
	
	@Override
	public String toString()
	{
		return this.getInternalName();
	}
}
